Conditions for random numbers in Javascript. How do I get this condition to work